const mongoose = require("mongoose");
mongoose.connect(
  "mongodb://ecommerce:CJH781100..@101.200.186.98:27017/ecommerce"
);
const conn = mongoose.connection;

conn.on("open", () => {
  console.log("连接成功");
});

conn.on("err", (err) => {
  console.log(err);
});

module.exports = mongoose;
